
<form action="__APP__/public/checklogin" method="post" onsubmit="return $.formValidator.pageIsValid('1')">
  <present name="mid"> 
  

  
  
  <span style="float:left; text-align:left; line-height:20px; padding:0 0 0 10px; ">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="35%">欢迎您：</td>
    <td><strong>{$my.bname}</strong> <span class="red">第{$myrank}名</span></td>
  </tr>
  <tr>
    <td>您可以：</td>
    <td><a href="__APP__/index/changepwd" style="color:red;">更改信息</a></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="__APP__/index/upload0" style="color:#F00;">发布照片</a>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="__APP__/index/ranking" class="red">查看排名</a></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><a href="__APP__/public/logout" style="color:red;">退出</a></td>
  </tr>
</table>
  </span>
    <else />
    <div><span>帐&nbsp;&nbsp;&nbsp;号：</span>
      <input type="text"  class="login_input" name="loginname" id="loginname" />
    </div>
    <div><span>密&nbsp;&nbsp;&nbsp;码：</span>
      <input type="password" class="login_input" name="password" id="password" />
    </div>
    <div id="login_input1"><span>验证码：</span>
      <input type="text" name="verify"  class="login_input1" />
      <a href="javascript:refresh();" style="color:#F00; line-height:20px; float:left; margin-top:5px;">点击刷新</a><img  id="verifycode" src="__APP__/public/verify" align="left" style="margin-top:5px;"/> </div>
    <div id="login_btn"><span>
      <input type="submit" value="提交" class="submit" />
      </span></div>
  </present>
</form>
<script type="text/javascript">
	
$(document).ready(function(){
	$.formValidator.initConfig({autotip:true,tidymode:true,onerror:function(msg){alert(msg)}});
//	$("#pname").formValidator({onshow:"请输入患者姓名",onfocus:"患者姓名必须输入",oncorrect:"恭喜你,通过了"}).inputValidator({min:2, max:20,onerror:"你输入的患者姓名长度不正确,请确认"});
	$("#loginname").formValidator({validatorgroup:"1",onshow:"请输入登陆名",onfocus:"登陆名必须输入",oncorrect:"恭喜你,通过了"});
	$("#password").formValidator({validatorgroup:"1",onshow:"请输入密码",onfocus:"密码必须输入",oncorrect:"恭喜你,通过了"});
//	$("#verify").formValidator({onshow:"请输入验证码",onfocus:"验证码必须输入",oncorrect:"恭喜你,通过了"});
});	
</script>
